package com.gem.service;

import com.gem.domain.User;
import com.github.pagehelper.PageInfo;
import org.apache.xmlbeans.impl.xb.xsdschema.Attribute;

import java.util.List;

/**
 * @author Bravea❤ ·勇
 * Description: 人员维护servic接口
 * create
 * Modified By:
 */
public interface UserSystemService {

    //添加用户
    boolean addUser(User u);

    //删除用户 可批量可单个
    boolean deleteUserById(Integer[] uid);

    //修改用户
    boolean modifyUser(User u);

    //通过id查询用户
    User findUserById(Integer uid);

    //市场分页
    PageInfo<User> findUserPageWidtM(int currentPage, int pageSize);

    //hrc分页
    PageInfo<User> findUserPageWidtHrc(int currentPage, int pageSize);

    //企培分页
    PageInfo<User> findUserPageWidtCompany(int currentPage, int pageSize);

    //就业分页
    PageInfo<User> findUserPageWidtJober(int currentPage, int pageSize);

    //查询所有用户
    List<User> findAllUser();

    //名字模糊查询用户分页
    PageInfo<User> findUserWithPageByName(int currentPage, int pageSize, String name);

    //查询所有用户分页
    PageInfo<User> findAllUserPage(int currentPage, int pageSize);
}
